<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>引用数据类型</title>
</head>
<body>
<script>
    var obj1 = new Object();
    obj1.name = 'smyh';
    var obj2 = obj1;
    obj1.name = 'vae';

    console.log(obj1.name);
    console.log(obj2.name);
</script>
</body>
</html>